import {get, post} from './api'

export function newChat(data) {
  return post({url: '/new_chat', data})
}

export function sendMessage(data) {
  return post({url: '/send_message', data})
}

export function logout(data) {
  return post({url: '/logout', data})
}

export function deleteConversation(data) {
  return post({url: '/delete_conversation', data})
}

export function getChatMessages(data) {
  return get({url: '/get_chat_messages', data})
}

export function getConversations(data) {
  return get({url: '/get_conversations', data})
}